package Process;
import java.awt.EventQueue;

import javax.swing.JFrame;
import java.awt.FlowLayout;
import javax.swing.JTable;
import javax.swing.JScrollBar;
import java.awt.Color;

import javax.swing.JCheckBox;
import javax.swing.JScrollPane;
import javax.swing.JTabbedPane;
import javax.swing.JTree;
import javax.swing.JList;
import javax.swing.JComboBox;
import javax.swing.Timer;

import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JPasswordField;
import javax.swing.JProgressBar;


public class UI1 {

	private JFrame frame;
	private JTable table;
	private JTable table_1;
	private JPasswordField passwordField;
	  int count=0;
	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					UI1 window = new UI1();
					window.frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the application.
	 */
	public UI1() {
		initialize();
	}

	private void initialize() {
		frame = new JFrame();
		frame.setBounds(100, 100, 556, 329);
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		passwordField = new JPasswordField();
		frame.getContentPane().add(passwordField, BorderLayout.NORTH);
	
		final JProgressBar progressBar = new JProgressBar();
		progressBar.setStringPainted(true);
		progressBar.setMaximum(0);
		progressBar.setMaximum(10);
		Timer timer = new Timer(500, new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				count++;
				progressBar.setValue(count);
			}
		});
		timer.start();
		frame.getContentPane().add(progressBar, BorderLayout.CENTER);
	}
}
